Class HashDictionary<K,V>

A generic dictionary class based on a hash set class HashSet<T>.

Implements

System.Collections.Generic.IEnumerable<KeyValuePair<K,V>>, System.Collections.IEnumerable, System.IFormattable, System.ICloneable, ICollectionValue<KeyValuePair<K,V>>, IDictionary<K,V>, IShowable

Bases

object, EnumerableBase<KeyValuePair<K,V>>, CollectionValueBase<KeyValuePair<K,V>>, DictionaryBase<K,V>

Field overview

pairs, Inherited from DictionaryBase<K,V>

Event overview

CollectionChanged, Inherited from DictionaryBase<K,V> ,
CollectionCleared, Inherited from DictionaryBase<K,V> ,
ItemInserted, Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
ItemRemovedAt, Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
ItemsAdded, Inherited from DictionaryBase<K,V> ,
ItemsRemoved, Inherited from DictionaryBase<K,V>

Property overview

ActiveEvents, Inherited from DictionaryBase<K,V> ,
ContainsSpeed, Inherited from DictionaryBase<K,V> ,
Count, Inherited from DictionaryBase<K,V> ,
CountSpeed, Inherited from DictionaryBase<K,V> ,
EqualityComparer, Inherited from DictionaryBase<K,V> ,
Fun, Inherited from DictionaryBase<K,V> ,
IsEmpty, Inherited from DictionaryBase<K,V> ,
IsReadOnly, Inherited from DictionaryBase<K,V> ,
this[K key], Inherited from DictionaryBase<K,V> ,
Keys, Inherited from DictionaryBase<K,V> ,
ListenableEvents, Inherited from DictionaryBase<K,V> ,
Values, Inherited from DictionaryBase<K,V>

Constructor overview

HashDictionary<K,V>() ,
HashDictionary<K,V>(System.Collections.Generic.IEqualityComparer<K> keyequalityComparer) ,
HashDictionary<K,V>(int capacity, double fill, System.Collections.Generic.IEqualityComparer<K> keyequalityComparer)

Method overview

Add(K key, V value), Inherited from DictionaryBase<K,V> ,
AddAll<L,W>(System.Collections.Generic.IEnumerable<KeyValuePair<L,W>> entries), Inherited from DictionaryBase<K,V> ,
All(Fun<KeyValuePair<K,V>,bool> predicate), Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
Apply(Act<KeyValuePair<K,V>> action), Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
Check(), Inherited from DictionaryBase<K,V> ,
Choose(), Inherited from DictionaryBase<K,V> ,
Clear(), Inherited from DictionaryBase<K,V> ,
Clone() ,
Contains(K key), Inherited from DictionaryBase<K,V> ,
ContainsAll<H>(System.Collections.Generic.IEnumerable<H> keys), Inherited from DictionaryBase<K,V> ,
CopyTo(KeyValuePair<K,V>[] array, int index), Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
Equals(object obj), Inherited from object ,
Exists(Fun<KeyValuePair<K,V>,bool> predicate), Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
Filter(Fun<KeyValuePair<K,V>,bool> predicate), Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
Finalize(), Inherited from object ,
Find(K key, out V value), Inherited from DictionaryBase<K,V> ,
Find(ref K key, out V value), Inherited from DictionaryBase<K,V> ,
Find(Fun<KeyValuePair<K,V>,bool> predicate, out KeyValuePair<K,V> item), Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
FindOrAdd(K key, ref V value), Inherited from DictionaryBase<K,V> ,
GetEnumerator(), Inherited from DictionaryBase<K,V> ,
GetHashCode(), Inherited from object ,
GetType(), Inherited from object ,
MemberwiseClone(), Inherited from object ,
raiseCollectionChanged(), Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
raiseCollectionCleared(bool full, int count), Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
raiseCollectionCleared(bool full, int count, System.Nullable<int> offset), Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
raiseForAdd(KeyValuePair<K,V> item), Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
raiseForInsert(int i, KeyValuePair<K,V> item), Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
raiseForRemove(KeyValuePair<K,V> item), Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
raiseForRemove(KeyValuePair<K,V> item, int count), Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
raiseForRemoveAll(ICollectionValue<KeyValuePair<K,V>> wasRemoved), Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
raiseForRemoveAt(int index, KeyValuePair<K,V> item), Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
raiseForSetThis(int index, KeyValuePair<K,V> value, KeyValuePair<K,V> item), Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
raiseForUpdate(KeyValuePair<K,V> newitem, KeyValuePair<K,V> olditem), Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
raiseForUpdate(KeyValuePair<K,V> newitem, KeyValuePair<K,V> olditem, int count), Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
raiseItemInserted(KeyValuePair<K,V> item, int index), Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
raiseItemRemovedAt(KeyValuePair<K,V> item, int index), Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
raiseItemsAdded(KeyValuePair<K,V> item, int count), Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
raiseItemsRemoved(KeyValuePair<K,V> item, int count), Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
Remove(K key), Inherited from DictionaryBase<K,V> ,
Remove(K key, out V value), Inherited from DictionaryBase<K,V> ,
Show(System.Text.StringBuilder stringbuilder, ref int rest, System.IFormatProvider formatProvider), Inherited from DictionaryBase<K,V> ,
ToArray(), Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
ToString(string format, System.IFormatProvider formatProvider), Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
ToString(), Inherited from CollectionValueBase<KeyValuePair<K,V>> ,
Update(K key, V value), Inherited from DictionaryBase<K,V> ,
Update(K key, V value, out V oldvalue), Inherited from DictionaryBase<K,V> ,
UpdateOrAdd(K key, V value), Inherited from DictionaryBase<K,V> ,
UpdateOrAdd(K key, V value, out V oldvalue), Inherited from DictionaryBase<K,V>

Constructor details

HashDictionary<K,V>() Create a hash dictionary using a default equalityComparer for the keys. Initial capacity of internal table will be 16 entries and threshold for expansion is 66% fill.
HashDictionary<K,V>(System.Collections.Generic.IEqualityComparer<K> keyequalityComparer) Create a hash dictionary using a custom equalityComparer for the keys. Initial capacity of internal table will be 16 entries and threshold for expansion is 66% fill.
Parameters:
keyequalityComparer:The external key equalityComparer
HashDictionary<K,V>(int capacity, double fill, System.Collections.Generic.IEqualityComparer<K> keyequalityComparer) Create a hash dictionary using a custom equalityComparer and prescribing the initial size of the dictionary and a non-default threshold for internal table expansion.
Parameters:
capacity:The initial capacity. Will be rounded upwards to nearest power of 2, at least 16.
fill:The expansion threshold. Must be between 10% and 90%.
keyequalityComparer:The external key equalityComparer

Method details

object Clone()
Returns: